﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Exam_Server.childForms.frm;

namespace Exam_Server.childForms
{
    public partial class FrmTestQuestion : Form
    {
        public FrmTestQuestion()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 快速预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void label_view_Click(object sender, EventArgs e)
        {
            if (this.splitContainer_content.Panel2Collapsed == false)
            {
                this.label_view.Text = "<快速预览";
                this.splitContainer_content.Panel2Collapsed = true;
            }
            else
            {
                this.label_view.Text = ">关闭预览";
                this.splitContainer_content.Panel2Collapsed = false;

            }

        }

        private void btn_addQuestion_Click(object sender, EventArgs e)
        {
            GenerateSingletonFrm<AddQuestion>.CreateInstrance().Show();
        }
    }
}
